#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
 struct TreeNode {
     int val;
     struct TreeNode *left;
     struct TreeNode *right;
 };

 bool cheak(struct TreeNode* p1, struct TreeNode* p2)
 {
     if (!p1 && !p2)
         return true;
     else if (!p1 || !p2)
         return false;
     else
         return (p1->val == p2->val) && cheak(p1->left, p2->right) && cheak(p1->right, p2->left);
 }


 bool isSymmetric(struct TreeNode* root) {
     return cheak(root, root);
 }
int main()
{
	return 0;
}